<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('create_topic', array('forum_id' => $ktd_forum->getId())) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php echo $form['title']->renderLabel() ?>
    <div class="in">
        <?php echo $form['title']->render()?>
        <?php if($form['title']->renderError() != NULL):?>
        <div class="ui-state-error">
            <?php echo $form['title']->renderError() ?>
        </div>
        <?php endif; ?>
    </div>
    <?php echo $form["first_message"]['body']->renderLabel() ?>
    <div class="in">
        <?php echo $form["first_message"]['body']->render()?>
        <?php if($form["first_message"]['body']->renderError() != NULL):?>
        <div class="ui-state-error">
            <?php echo $form["first_message"]['body']->renderError() ?>
        </div>
        <?php endif;?>
    </div>
<?php echo $form['_csrf_token']; ?><br/>
<input class="btn primary" type="submit" value="Envoyer" />
</form>
